set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)

set(CMAKE_C_COMPILER  /opt/FriendlyARM/toolchain/armv8-sdk/staging_dir/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/aarch64-openwrt-linux-gcc)
set(CMAKE_CXX_COMPILER  /opt/FriendlyARM/toolchain/armv8-sdk/staging_dir/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/aarch64-openwrt-linux-g++ )

# 设置查找程序时的路径
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# 只在目标系统上查找库文件
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
# 只在目标系统上查找头文件
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
